inherited FPesquisaOcorrenciaVendaNotaFiscal: TFPesquisaOcorrenciaVendaNotaFiscal
  Left = 188
  Top = 143
  Caption = 'Pesquisa Venda Nota Fiscal Mercadoria'
  ClientHeight = 311
  ClientWidth = 444
  OldCreateOrder = True
  PixelsPerInch = 96
  TextHeight = 13
  inherited Panel2: TPanel
    Width = 444
    inherited BtnLimpar: TBitBtn
      OnClick = BtnLimparClick
    end
    inherited BtnImprimir: TBitBtn
      OnClick = BtnImprimirClick
    end
  end
  inherited Panel1: TPanel
    Width = 444
    Height = 270
    object Label5: TLabel [0]
      Left = 3
      Top = 69
      Width = 32
      Height = 13
      Caption = 'Cliente'
    end
    object Label7: TLabel [1]
      Left = 94
      Top = 51
      Width = 6
      Height = 13
      Caption = 'a'
    end
    object Label8: TLabel [2]
      Left = 3
      Top = 34
      Width = 65
      Height = 13
      Caption = 'Data Emiss'#227'o'
    end
    object Label12: TLabel [3]
      Left = 2
      Top = 128
      Width = 46
      Height = 13
      Caption = 'Empresas'
    end
    inherited DBGrid1: TDBGrid
      Top = 184
      Width = 442
      Height = 65
      TabOrder = 6
    end
    inherited Panel3: TPanel
      Top = 249
      Width = 442
      TabOrder = 7
    end
    object DBLCBCliente: TDBLookupComboBox
      Left = 3
      Top = 84
      Width = 440
      Height = 21
      KeyField = 'CLI_CODIGO'
      ListField = 'CLI_RAZAO'
      ListSource = DSCliente
      TabOrder = 3
      OnKeyDown = DBLCBClienteKeyDown
    end
    object DEDataEmissaoINI: TDateEdit
      Left = 3
      Top = 47
      Width = 90
      Height = 21
      NumGlyphs = 2
      TabOrder = 1
    end
    object DEDataEmissaoFIM: TDateEdit
      Left = 104
      Top = 47
      Width = 90
      Height = 21
      NumGlyphs = 2
      TabOrder = 2
    end
    object CkBTodasEmpresas: TCheckBox
      Left = 2
      Top = 112
      Width = 118
      Height = 17
      Caption = 'Todas as Empresas'
      TabOrder = 4
      OnClick = CkBTodasEmpresasClick
    end
    object CLBEmpresas: TCheckListBox
      Left = 1
      Top = 144
      Width = 442
      Height = 40
      Align = alBottom
      Columns = 1
      ItemHeight = 13
      TabOrder = 5
    end
    object GroupBox1: TGroupBox
      Left = 1
      Top = 1
      Width = 442
      Height = 31
      Align = alTop
      Caption = 'Situa'#231#227'o Nota Fiscal'
      TabOrder = 0
      object ChBNaoEmitida: TCheckBox
        Left = 5
        Top = 12
        Width = 80
        Height = 17
        Caption = 'N'#227'o Emitida'
        TabOrder = 0
      end
      object ChBEmitida: TCheckBox
        Left = 205
        Top = 12
        Width = 57
        Height = 17
        Caption = 'Emitida'
        TabOrder = 1
      end
      object ChBCancelada: TCheckBox
        Left = 341
        Top = 12
        Width = 76
        Height = 17
        Caption = 'Cancelada'
        TabOrder = 2
      end
    end
    object RGOrdena: TRadioGroup
      Left = 208
      Top = 34
      Width = 150
      Height = 33
      Caption = 'Ordenar por :'
      Columns = 2
      ItemIndex = 0
      Items.Strings = (
        'Cliente'
        'N'#176' Nota')
      TabOrder = 8
      OnClick = RGOrdenaClick
    end
  end
  inherited QPesquisa: TQuery
    Active = True
    AutoRefresh = True
    SQL.Strings = (
      'Select'
      
        'NotaFiscalVenda.*,TIPVEND_CODIGOVENDA,CLI_RAZAO,CFOP_CODIGOFISCA' +
        'L,CFOP_NATUREZAOPERACAO'
      ''
      'From NotaFiscalVenda'
      'Left join TipoVenda on NF_TIPOVENDA = TipVend_Codigo'
      'Left Join Cliente on NF_CLIENTE = Cli_Codigo'
      'Left Join CFOP on NF_CFOPNF = CFOP_Codigo'
      ''
      'Where  Nf_Codigo = Nf_codigo'
      ''
      'and ( NF_SITUACAO = 0   or NF_SITUACAO =1 )'
      ''
      'Order By CLI_RAZAO,NF_Codigo')
    Top = 225
  end
  inherited DSPesquisa: TDataSource
    Top = 233
  end
  object DSCliente: TDataSource
    DataSet = DMGestao.QCliente
    Left = 232
    Top = 128
  end
end
